#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QTimer>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_login_Button_clicked();
    void connectedSlot();
    void timerupdateSlot();
    void recvSlot();

    void on_register_Button_clicked();

    void on_register2_Button_clicked();

    void on_query_Button_clicked();

    void on_download_Button_clicked();

    void on_logout_Button_clicked();

    void on_location_queryBtuuon_clicked();

private:
    Ui::Widget *ui;
    QTcpSocket *socket;
    QTimer timer;
    QByteArray arr;
    QString mystring;
    QString showtext;
    int n;
};

#endif // WIDGET_H
